function Rept(contextPath,divContainer){
	View.apply(this,arguments);
	this.currentEditCell = null;
	this.inputObject = document.createElement("input");
	this.getDivContent = function(){
		divContainer.innerHTML = "";
		return getDefaultTable(divContainer);
	};
	
	var getDefaultTable = function(divContainer){
		var rowNum = 20;
		var colNum = 20;
		var defaultTableHtml = ['<div><table class="reptable">'];
		for(var i=0;i<rowNum;i++){
			defaultTableHtml.push('<tr>');
			for(var j=0;j<colNum;j++){
				defaultTableHtml.push('<td>1111</td>');
			}
			defaultTableHtml.push('</tr>');
		}
		defaultTableHtml.push('</table></div>');
		return defaultTableHtml.join('');
	};
}

Rept.prototype = new View();
Rept.prototype.handleMouseUpEvent1 = function(evt){
	var handleObject = evt.srcElement;
	if(this.currentEditCell!==null){
		this.currentEditCell.innerText = this.inputObject.value;
	}
	if(handleObject.tagName=="TD"){
		this.inputObject.type = "text";
		this.inputObject.value = handleObject.innerText;
		handleObject.innerText = "";
		handleObject.appendChild(this.inputObject);
		this.currentEditCell = handleObject;
		this.inputObject.focus();
	}
};
